/* eslint-disable import/prefer-default-export */
import request from '@/utils/request';

/**
 * 流程模板管理列表
 * @param {*} param
 */
export function gettemplatelist(params) {
    return request('/api/oa/v1/workflow/template/gettemplatelist', {
        params,
        method: 'POST'
    });
}
/**
 * 流程模板基本设置 详情
 */
export function detailworkflowtemplate(params) {
    return request('/api/oa/v1/workflow/template/detailworkflowtemplate', {
        params,
        method: 'POST'
    });
}
/**
 * 保存流程基本设置信息
 */
export function savebaseworkflowtemplate(params) {
    return request('/api/oa/v1/workflow/template/savebaseworkflowtemplate', {
        method: 'POST',
        data: params
    });
}
/**
 * 通过流程部署id读取流程定义字符串接口
 * @param
 */
export function getProcessJson(params) {
    return request('/api/oa/v1/workflow/template/getprocessjsonbydeploymentid', {
        params,
        method: 'POST'
    });
}
/**
 * 通过表单部署id读取表单定义字符串接口
 */
export function getFromJson(params) {
    return request('/api/oa/v1/workflow/template/getformjsonbydeploymentid', {
        params,
        method: 'POST'
    });
}
/**
 * 基础数据字典
 */
export async function getTypeList(params) {
    return request('/api/oa/v1/common/select/typelist', {
        method: 'POST',
        params
    });
}
